package cn.edu.klmy.dao;

import cn.edu.klmy.models.elective.ElectiveCourseItem;
import cn.edu.klmy.models.elective.ElectiveCourseSituation;
import cn.edu.klmy.models.elective.StudentCourseCredit;
import cn.edu.klmy.models.elective.StudentCourseElective;
import cn.edu.klmy.models.elective.StudentCourseElectiveCredit;

import java.util.List;

/**
 * @author ��ΰ
 *         �������ڣ�13-5-15
 */
public interface IElectiveDao {
    public List<StudentCourseElective> getStudentCurrentElection(int studentId, int term, int section);

    public List<ElectiveCourseItem> getElectiveCourse(int studentId, int term, int section, int week, int time);

    public int addElectiveCourse(int studentId, int scheduleId, int term, int section, int week, int time);

    public int updateElectiveCourse(int id, int scheduleId);

    public int deleteElectiveCourse(int id);
    
    List<StudentCourseElectiveCredit> getStudentAllElection(int studentId, int term, int section, int type);

    public int deleteStudentElectiveCourse(int studentId,int scheduleId,int term, int section, int week, int time);

    public List<ElectiveCourseSituation> getCourseElection(int schedulingId,int term,int section);
    
    List<StudentCourseCredit> getStudentCourseCredits(int schedulingId);

    public int isMoreElectiveNum(int courseSchedulingId,int term, int section, int week, int time);

    public int clearCourseElectiveData(int scheduleId, int term, int section, int week, int time );
}
